
# Find CMocka

INCLUDE(FindPkgConfig)
 
FIND_PATH(
    CMOCKA_INCLUDE_DIRS
    NAMES cmocka.h
    PATHS /usr/local/include
)
    

FIND_LIBRARY(
    CMOCKA_LIBRARIES
    NAMES cmocka
    PATHS /usr/local/lib
          /usr/lib
          /usr/lib/x86_64-linux-gnu
)



INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CMOCKA DEFAULT_MSG CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIRS)
MARK_AS_ADVANCED(CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIRS CMOCKA_THREADS_LIBRARIES)
